package com.ryx.service;

import com.ryx.entity.SysRotationChart;
import com.ryx.vo.req.FilePageReqVo;
import com.ryx.vo.resp.PageVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @BelongsPackage: com.ryx.service
 * @Author: 容永轩
 * @CreateTime: 2021-01-28
 * @Description:
 */
public interface FileService {

//上传文件接口
    String upload(MultipartFile file,String createId,Integer type);

//下载文件接口
    void downloadFile(String fileId, HttpServletResponse response);

//  删除文件接口
    int deleteFile(String fileUrl);

//文件分页接口
    PageVo<SysRotationChart> pageInfo(FilePageReqVo vo, String userId);

}
